function onback(){
	window.history.back(-1);
}

$(function() {
	var loading = $("#my-modal-loading");
	var content;
	var contact_way;
	$("#tbutton").click(function(){
		content = $("#store_person_suggestion").val();
		contact_way = $("#person_phone").val();
		loading.modal();
		$.ajax({
				type: "POST",
				url: "http://yx.fxtourong.com/V1/Member/feedback",
				data: {
					token : localStorage.getItem("token"),
					content : content,
					contact_way : contact_way
				},
				dataType: "json",
				success: function(data) {
					loading.modal('close');
					console.log(data);
					var code = data.code;
					console.log(code);
					if(code == "1") {
						location.href = "mine3.html";
					} else {
						alert(data.message + "");
					}
				},
				error: function(e){
					loading.modal('close');
					alert("服务请求异常！");
				}
			});	
	});

});